﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace MoskieBlog.Data.Models
{
    public class Post
    {
        public int PostId { get; set; }

        public string Title { get; set; }

        [DataType(DataType.MultilineText)]
        public string Text { get; set; }
        
        [Display(Name = "Posted Date")]
        [Editable(false, AllowInitialValue = true)]
        public DateTime PostedDate { get; set; }

        public User Poster { get; set; }

        public List<Comment> Comments { get; set; }
    }
}
